package com.md.youyouhui.net.repo;

import android.arch.lifecycle.LiveData;

import com.md.youyouhui.common.Resource;
import com.md.youyouhui.net.ApiServiceFac;
import com.md.youyouhui.utils.calladapter.ResourceConvertUtils;

/**
 * Created by AdministratorZJ
 * on 2018/5/25.
 */

public class AddAddressRepo {
    private static AddAddressRepo INSTANCE;

    public static AddAddressRepo newInstance() {
        if (null == INSTANCE) {
            INSTANCE = new AddAddressRepo();
        }
        return INSTANCE;
    }


    public LiveData<Resource<Object>> addAddress(String id, String consignee, String mobilePhone, String area, String detailedAddress, String postcode, String tag) {
        return ResourceConvertUtils.convertResource(ApiServiceFac.get().addAddress(id, consignee, mobilePhone, area, detailedAddress, postcode, tag));
    }


}
